package com.lazycat.backend.service.impl.user;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lazycat.backend.mapper.CommentMapper;
import com.lazycat.backend.pojo.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RemoveCommentServiceImpl {
    @Autowired
    private CommentMapper commentMapper;

    public void remove(Integer id) {
        QueryWrapper<Comment> commentQueryWrapper = new QueryWrapper<>();
        commentQueryWrapper.eq("id", id);
        commentMapper.delete(commentQueryWrapper);
    }
}
